package com.consult.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.consult.entity.RegisterRecord;
import com.consult.mapper.RegisterRecordMapper;
import com.consult.service.IRegisterRecordService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-26
 */
@Service
public class RegisterRecordServiceImpl extends ServiceImpl<RegisterRecordMapper, RegisterRecord> implements IRegisterRecordService {

    @Override
    public Page<RegisterRecord> getRegisterPage(Page<RegisterRecord> page) {
        return baseMapper.getRegisterPage(page);
    }

    @Override
    public Integer getUserRecordNum(Long userId) {
        return baseMapper.getUserRecordNum(userId);
    }
}
